<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script th:src="@{/ruoyi/qrcode.js}"></script>
		<style>
			#qrcode {
				width: 256px;
				height: 256px;
				margin: auto;
				margin-top: 10%;
			}

			#qrcode img {
				width: 100%;
			}
		</style>
	</head>
	<body>
		<div id="qrcode"></div>
		<input type="hidden" id="id" th:value="${gysptKqproject.id}" />
		<th:block th:include="include :: footer" />
		<script>
			var prefix = "http://hbczdl.com:85/api/checkadd/"+$("#id").val();
			/* 生成二维码 */
			var qrcode = new QRCode(document.getElementById("qrcode"), {
				text: prefix, //扫描二维码后的内容
				width: 256, //二维码的宽
				height: 256, //二维码的高
				colorDark: "black", //二维码线条颜色
				colorLight: "#ffffff", //二维码背景颜色
				correctLevel: QRCode.CorrectLevel.H //二维码等级
			});
		</script>
	</body>
</html>

